<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>夜读书FM - 音频分享平台,随时随地,听我想听!</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书,夜读书FM,电台">
    <meta name="description" content="音频分享平台，随时随地，听我想听！4亿用户选择的在线音频平台。1亿多条原创有声内容覆盖有声书、儿童、相声评书、财经新闻、音乐等328类。">
    <meta name="keywords" content="夜读书,网络电台,个人电台,音频,有声书,相声,儿童,音乐,情感">
    <link rel="stylesheet" href="{{ asset('/style/css/yefm.css') }}">   
    <script src="{{ asset('/scripts/ximalaya/xmsdk.min.js') }}"></script>
    <script src="{{ asset('/scripts/ximalaya/vue.min.js') }}"></script>
</head>
<body>    
@include('mobile.nav')
<div class="page" style="clear:both;">    
    @include('yefm.inc.search')
    <div class="xm-tabbar">
        <ul class="tab-list">
            <a class="tab-item" href="{{url('yefm/category/3')}}">有声书</a><a class="tab-item _tNb" href="{{url('yefm/category/12')}}">相声</a>
            <a class="tab-item" href="{{url('yefm/category/2')}}">音乐</a><a class="tab-item _tNb" href="{{url('yefm/category/6')}}">儿童</a>
            <a class="tab-item" href="{{url('yefm/category/39')}}">人文</a><a class="tab-item _tNb" href="{{url('yefm/category/10')}}">情感</a>
            <a class="tab-item" href="{{url('yefm/category/9')}}">历史</a><a class="tab-item _tNb" href="{{url('yefm/category/18')}}">科技</a>
            <a class="tab-item" href="{{url('yefm/category')}}">更多</a>
        </ul>
    </div>
    <div class="xm-list">
        <div class="list-view" id="youshengshu" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">有声书</div>
                <a href="{{url('yefm/category/3')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>   

        <div class="list-view" id="yinyue" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">音乐</div>
                <a href="{{url('yefm/category/2')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>

        <div class="list-view" id="qinggan" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">情感生活</div>
                <a href="{{url('yefm/category/10')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>

        <div class="list-view" id="zixun" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">资讯</div>
                <a href="{{url('yefm/category/1')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>

        <div class="list-view" id="lishi" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">历史</div>
                <a href="{{url('yefm/category/9')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>

        <div class="list-view" id="itkeji" v-cloak>
            <div class="list-view_header">
                <div class="list-view_title">IT科技</div>
                <a href="{{url('yefm/category/18')}}" class="more">更多 ></a>
            </div>
            <ul class="list-view_body">
                <li class="list-view_item" v-for="row in rows.albums">
                    <a :href="'{{url('yefm/ting').'/'}}' + row.id">
                        <div class="xm-album">
                            <div class="xm-album-cover">
                                <div class="xm-pimg">
                                    <img class="cover-image" :src="row.cover_url_large">
                                </div>
                                <div class="xm-content" style="">
                                    <div class="xm-album_title">@{{row.album_title}}</div>
                                    <p class="xm-album_subtitle">@{{row.recommend_reason}}</p>
                                    <div class="xm-album__info">
                                        <span class="user-channel ellipsis-1 _lY"><i class="xm-icon icon-user"></i>&nbsp; @{{row.announcer.nickname}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-sound"></i>&nbsp; @{{row.include_track_count}}</span>
                                        <span class="count _lY"><i class="xm-icon icon-data"></i>&nbsp; @{{play_count(row.play_count)}}</span>
                                    </div>
                                    @include('yefm.adinc.ximalaya-1')
                                </div> 
                                <div style="clear:both;"></div>                     
                            </div>                            
                        </div>
                    </a>                
                </li>
            </ul>
        </div>
    </div>
@include('yefm.inc.footer')
</div> 
<script src="{{url('/scripts/ximalaya/yefmconfig.js')}}"></script>
<script>
    const xmly = new XMLY();

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 3, // 有声书
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#youshengshu',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 2, // 音乐
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#yinyue',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 10, // 情感生活
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#qinggan',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 1, // 资讯
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#zixun',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 9, // 历史
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#lishi',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });

    // 专辑列表
    xmly.request({
        url: 'https://api.ximalaya.com/v2/albums/list',
        type: 'get',
        params: {
            category_id: 18, // 历史
            tag_name: 0,
            calc_dimension: 1,
            page: 1,
            count: 6,
            contains_paid: false,
        }
    }).then(res => {
        new Vue({
            el: '#itkeji',
            data: {
                rows: res.data,
            },
            methods: {
                play_count: function (play_count)  {
                    //计算播放次数
                    let count = play_count;
                    if(count >= 100000000) {
                        return (count/100000000).toFixed(2) + '亿';
                    }
                    else {
                        return (count/10000).toFixed(2) + '万';
                    }
                }
            }
        });   
    });
</script>
</body>
</html>
